Lesson 5 - newbie exercise

For each scenario suggest what variables would be needed and what their data types would be. You do not need to write the code for them.

Scenario - Count the number of words in a sentance.

Toggle answer

Scenario - Throw a coin 50 times and count the number of times heads and tails comes up.

Toggle answer

Scenario - Calculate the speed of a object (speed = distance / time)

Toggle answer